package com.stu.model;

/**
 * @author Fairy
 * 用户模型，USER用户精力及能力有限，没空实现
 */
public enum UserType {
	/**
	 * 管理员
	 */
	ADMIN("管理员", 0)
	/*, USER("用户", 1)*/;

	private String name;
	private int flag;

	private UserType(String name, int flag) {
		this.name = name;
		this.flag = flag;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	@Override
	public String toString() {
		return this.name;
	}

}
